﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace FlickrMe
{
    public partial class AuthDialog : Form
    {
       
        public AuthDialog()
        {
            InitializeComponent();
            this.CancelButton = button2;
            this.AcceptButton = button1;
            button1.DialogResult = DialogResult.OK;
            this.Shown += new EventHandler(AuthDialog_Shown);
           
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Close();
        }

        /*
         * Called when this Form is shown to enable it to be brought into view.
         */
        private void AuthDialog_Shown(Object obj, EventArgs args) 
        {
            // Ensure that the dialog is visible and not hidden
            // behind another dialog.
            this.TopMost = true;
            this.BringToFront();
            this.Focus();
            this.TopMost = false;
        }

  
        
    }
}
